using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace TONLI.TJOA.Anquan {
    public partial class AQK_FXM_HtmlEdit : System.Web.UI.Page {
        string ck = "";
        string rq = "";
        string str_rq = "";
        protected void Page_Load(object sender, EventArgs e) {
            ck=Request["ck"];
            rq = Request["rq"];
            try
            {
                if (rq != "")
                {
                    str_rq=rq.Substring(0, 4) + "-" + rq.Substring(4, 2) + "-" + rq.Substring(6, 2);
                }
            }
            catch(Exception e1){
                str_rq = System.DateTime.Today.ToString("yyyy-MM-dd");
            }
            if (!Page.IsPostBack) {
                if(ck =="rb"){
                    UC_HtmlEditor1.loadRBBData(str_rq,Request["SBSJ"]);
                }
                if (ck == "zb")
                {
                    UC_HtmlEditor1.loadZBBData(str_rq, Request["SBSJ"]);
                }
                else{
                    UC_HtmlEditor1.loadData(Request["suid"], Request["col"], Request["table"]);
                }
            }
        }

        protected void Button1_Click(object sender, EventArgs e) {
            UC_HtmlEditor1.saveData(Request["suid"], Request["col"], Request["table"]);
        }
    }
}
